package Day13;

import java.io.*;

public class Text3 {
    public static void main(String[] args) {
        try {
            File dir = new File("D:\\aaa");
            if(!dir.exists()){
                dir.mkdirs();
            }
            OutputStream os = new FileOutputStream("D:\\aaa\\io.txt",true);
            String txt = "超用心";
            byte[] byte1 = txt.getBytes();
            os.write(byte1);
            os.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e){
            e.printStackTrace();
        }
    }
}
